package com.lmt.service;

import com.lmt.base.ResultData;
import com.lmt.entity.ResourceDownload;
import com.lmt.entity.search.ResourceDownloadSearch;

/**
 * Date 2018/07/17
 *
 * @author MT-Lin
 */
public interface ResourceDownloadService {

	/**
	 * 保存资源下载记录
	 * @param resourceDownload 下载记录
	 * @return ResultData
	 */
	ResultData save(ResourceDownload resourceDownload);

	/**
	 * 获取用户下载次数
	 * @param userId 用户ID
	 * @return 下载次数
	 */
	int getDownloadNum(String userId);

	/**
	 * 查询下载记录
	 * @param resourceDownloadSearch 查询参数
	 * @return ResultData
	 */
	ResultData search(ResourceDownloadSearch resourceDownloadSearch);
}
